﻿using MainInterface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MainFrameProperty
{
    public class UIObject:IComponentXml
    {
        public List<UIProperty> Properties = new List<UIProperty>();
        public List<UIMethod> Methodes = new List<UIMethod>();
        public List<UIEvent> Events = new List<UIEvent>();
        public void LoadXmlZYK(System.Xml.XmlNode doc)
        {
            throw new NotImplementedException();
        }

        public void GetXml(System.Xml.XmlDocument doc, System.Xml.XmlNode Parent)
        {
            throw new NotImplementedException();
        }

        public void LoadUI(System.Xml.XmlNode node)
        {
            throw new NotImplementedException();
        }

        public override string ToString()
        {
            if (Properties.Count == 0 && Methodes.Count == 0 && Events.Count == 0) 
            {
                return null;
            }
            return "属性:" + Properties.Count + "方法:" + Methodes.Count + "事件:" + Events.Count;
        }
    }
}
